﻿using System.Windows;
namespace Zellularautomat
{
	public class ErrorHandler
	{
		public static void ShowError(string errorString, string caption)
		{
			MessageBox.Show(errorString, caption, MessageBoxButton.OK, MessageBoxImage.Error);
		}

		public static void ShowInformation(string infoString, string caption)
		{
			MessageBox.Show(infoString, caption, MessageBoxButton.OK, MessageBoxImage.Information);
		}

		public static MessageBoxResult ShowQuestion(string questionString, string caption)
		{
			return MessageBox.Show(questionString, caption, MessageBoxButton.YesNo, MessageBoxImage.Question);
		}
	}
}
